package session.stateless;

import entity.SaleQuotation;
import entity.LineItem;
import entity.Product;
import java.util.List;
import javax.ejb.Local;

@Local
public interface SaleQuotationBeanLocal {
    public LineItem createLineItem_Discount(Product product,Long quantity) ;
    
    public List<Product> getProduct();
    
    public Long convertToSaleQuotation(Long saleInquiryId, List<LineItem> lineItems);
    public Long createNewSaleQuotation(String registrationNumber, List<LineItem> Items, Integer leadTime) ;
    public void updateSaleQuotation(Long saleQuotationId,List<LineItem> lineItems);
    public void deleteSaleQuotation(Long saleQuotationId) ;

    public List<SaleQuotation> getSaleQuotation() ;
    public List<SaleQuotation> getSaleQuotationBySaleLead(String registrationNumber);
    public List<SaleQuotation> getSaleQuotationByCustomer(String registrationNumber);
    
    public double calculateFinalPrice(Product product, Long quantity);
}
